//
//  QuestionOfDataQAADetailedInformation.m
//  LCOnePsychology
//
//  Created by li cheng on 16/09/23
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "QuestionOfDataQAADetailedInformation.h"
#import "TagsOfQuestionDataQAADetailedInformation.h"
#import "UserOfQuestionDataQAADetailedInformation.h"
@implementation QuestionOfDataQAADetailedInformation
- (void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"tags"]) {
        NSMutableArray<TagsOfQuestionDataQAADetailedInformation *> *mArrayOfTagsOfQuestionDataQAADetailedInformation = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            TagsOfQuestionDataQAADetailedInformation *tagsOfQuestionDataQAADetailedInformation = [TagsOfQuestionDataQAADetailedInformation modelDic:dic];
            [mArrayOfTagsOfQuestionDataQAADetailedInformation addObject:tagsOfQuestionDataQAADetailedInformation];
        }
        _tags = mArrayOfTagsOfQuestionDataQAADetailedInformation;
    }
    if ([key isEqualToString:@"user"]) {
        _user = [UserOfQuestionDataQAADetailedInformation modelDic:value];
    }
}
- (void)setValue:(id)value forUndefinedKey:(nonnull NSString *)key{
    [super setValue:value forUndefinedKey:key];
    if ([key isEqualToString:@"id"]) {
        self.ID = value;
    }
}
+ (NSDictionary *)objectClassInArray{
    return @{@"tags" : [TagsOfQuestionDataQAADetailedInformation class]};
}

@end
